        <!-- 顶部信息 -->
        {include file='common/nav'/}
        <!--菜单-->
            {include file='common/top'/}
            </div>
        </div>
        <!-- 菜单结束-->
    
        <!-- 主体部分和顶部-->
        {include file='common/main'/}
        <!--页面-->
        <div class="page-heading">
            <h3>
                增加比赛
            </h3>
            <ul class="breadcrumb">
                <li>
                    <a href="{:url('index/list')}">直播列表</a>
                </li>
                <li class="active">增加</li>
            </ul>
        </div>
        <!-- page heading end-->
        <hr/>
        <!--body wrapper start-->
        <div class="wrapper">
            <div class="row">
                <div class="col-md-12">
                    <div class="square-widget">
                        <div class="widget-container">
                            <div class="stepy-tab">
                            </div>
                            <form id="default" class="form-horizontal">
                                <fieldset title="Initial Info">
                                    <legend>请填写完整</legend>
                                    <div class="form-group">
                                        <label class="col-md-2 col-sm-2 control-label">主场球队</label>
                                        <div class="col-md-6 col-sm-6">
                                            <input type="text" name="cluba" placeholder="请输入球队名称" class="form-control">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-md-2 col-sm-2 control-label">客场球队</label>
                                        <div class="col-md-6 col-sm-6">
                                            <input type="text" name="clubb" placeholder="请输入球队名称" class="form-control">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-md-2 col-sm-2 control-label">比赛时间</label>
                                        <div class="col-md-6 col-sm-6">
                                            <input type="text" name="live_time" placeholder="请输入开赛时间,如22:00:00或02:30:00" class="form-control">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-md-2 col-sm-2 control-label">直播源地址</label>
                                        <div class="col-md-6 col-sm-6">
                                            <input type="text" name="addres" placeholder="请输入FLV直播源地址" class="form-control">
                                        </div>
                                    </div>
                                </fieldset>
                                
                                    <button type="button" class="btn btn-info btn-extend" onclick="add()"> 提交</button>
                            </form>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <script type="text/javascript">
            function add() {
                $.ajax({
                //几个参数需要注意一下
                    type: "POST",//方法类型
                    dataType: "json",//预期服务器返回的数据类型
                    url: "{:url('index/add')}" ,//url
                    data: $('#default').serialize(),
                    success: function (result) {
                        if (result.code == 200) {
                            alert("新增成功");
                            window.location.href="{:url('index/list')}";
                        }else{
                            alert('有错误');
                        }
                        ;
                    },
                });
            }
        </script>
        <!--页面结束-->
        <!--底部内容-->
        {include file='common/bottom'/}